From: Keir Fraser Date: Tue, 31 Mar 2009 12:21:36 +0000 (+0100) Subject: ia64, pygrub: Allow command-line editing in Lilo boot loader X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~13989^2~38 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22Dat/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22Dat?a=commitdiff_plain;h=3f64466b4bfbc47a9cb97416d7ed883606a329d2;p=xen.git ia64, pygrub: Allow command-line editing in Lilo boot loader On IA64 platform reset() function has one more parameter for Lilo bootloader used by IA64 than for GRUB bootloader used for other platforms. Signed-off-by: Michal Novotny --- diff --git a/tools/pygrub/src/pygrub b/tools/pygrub/src/pygrub index 561bc7efe9..e43dcc2d9a 100644 --- a/tools/pygrub/src/pygrub +++ b/tools/pygrub/src/pygrub @@ -316,7 +316,11 @@ class Grub: curline = len(img.lines) - 1 if self.isdone: - origimg.reset(img.lines) + # Fix to allow pygrub command-line editing in Lilo bootloader (used by IA64) + if platform.machine() == 'ia64': + origimg.reset(img.lines, img.path) + else: + origimg.reset(img.lines) def edit_line(self, line): self.screen.erase()